<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<script>
$(document).ready(function(){
	$("input[id='submit_date']").attr("readonly",true);
});

function    selectPsnCall(data) {
	/* $("input").each(function(){
		$(this).val("");
	});  */

	$("#basicInfo2333 input[id!='selectPsn'][id!='submit_date'][id!='zh_title']").each(function(){
		//$("input[id!='selectPsn']").val("");
		$(this).val("");
		$("input[id='advant_01']").attr("checked",false);
		$("input[id='advant_02']").attr("checked",false);
	}); 
	
	$(document).find("input[name$='psn_code']").val(data.person.psnCode);
	$("#zh_title").val(data.personExtend.basic_info.zh_name+'杰出青年人才资助计划项目申报书');

	$("#fzr_psnname").html(data.personExtend.basic_info.zh_name);
	/* if (data.personExtend.basic_info.gender_value=='F') {
		$("#fzr_gender_name").html("女");
	} else { 
		$("#fzr_gender_name").html("男");
	} */
	if (data.personExtend.basic_info.gender_value=='F') {
		$("input[id='advant_02']").attr("checked",true);
		$("#fzr_gender_value").val("F");
		$("#fzr_gender_name").val("女");
	} else { 
		$("input[id='advant_01']").attr("checked",true);
		$("#fzr_gender_value").val("M");
		$("#fzr_gender_name").val("男");
	} 
	
	
	$("#fzr_ethnicity").val(data.personExtend.basic_info.ethnicity_value);
	$("#fzr_ethnicity_name").val(data.personExtend.basic_info.ethnicity_name);
	$("#fzr_ethnicity_value").val(data.personExtend.basic_info.ethnicity_value);
	$("#fzr_birthday").val(data.personExtend.basic_info.birthday);
	$("#fzr_educate").val(data.personExtend.basic_info.educate_value);
	$("#fzr_educate_name").val(data.personExtend.basic_info.educate_name);
	$("#fzr_educate_value").val(data.personExtend.basic_info.educate_value);
	$("#fzr_degree").val(data.personExtend.basic_info.degree_value);
	$("#fzr_degree_name").val(data.personExtend.basic_info.degree_name);
	$("#fzr_degree_value").val(data.personExtend.basic_info.degree_value);
	$("#fzr_prof_title").val(data.personExtend.basic_info.prof_title_name);
	$("#fzr_prof_title_name").val(data.personExtend.basic_info.prof_title_name);
	$("#fzr_prof_title_value").val(data.personExtend.basic_info.prof_title_value);
	$("#fzr_tel_work").val(data.personExtend.contact.tel_work);
	$("#fzr_mobile").val(data.personExtend.contact.mobile);
	$("#fzr_major_work").val(data.personExtend.contact.major_work);
	$("#subject").val(data.personExtend.basic_info.subject_name);
	$("#subject_name").val(data.personExtend.basic_info.subject_name);
	$("#subject_code").val(data.personExtend.basic_info.subject_code);
	$("#fzr_graduate_college").val(data.personExtend.basic_info.graduate_college);
	$("#fzr_address").val(data.personExtend.basic_info.address);
	$("#fzr_post_code").val(data.personExtend.basic_info.post_code);
	$("#fzr_org_name").val(data.personExtend.basic_info.org_name);
	$("#fzr_email").val(data.personExtend.contact.email); 
	
	<security:authorize ifAnyGranted="A_MENU_MANAGE_19">
	$("#depart_code").val(data.person.deptCode);
	</security:authorize>
	
	tb_remove2();
}

</script>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo2333"
	cellspacing="1">
	<col style="width:10%"/>
	<col style="width:23%"/>
	<col style="width:10%"/>
	<col style="width:23%"/>
	<col style="width:10%"/>
	<col style="width:23%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}</td>
		
	</tr>
	<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
	<tr class="li_2">
	   <td   align="right" >姓名：</td>
		<td >
		<span name="proposal/fzr_psnname" id="fzr_psnname"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td align="right">性别：</td>
		<td >
		   <c:set var="gender_value"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value" /></c:set>
			<span name="proposal/fzr_gender_name" id="fzr_gender_name" ><c:if test="${gender_value=='M'}">男</c:if><c:if test="${gender_value=='F'}">女</c:if></span>
			<input type="hidden" name="proposal/fzr_gender_value" value="${gender_value}"/>
		</td>
		<td  align="right">民族：</td>
		<td>
			<span name="proposal/fzr_ethnicity_name" id="fzr_ethnicity"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_name" /></span>
		</td>		
	</tr>
	<tr class="li_1">
		<td   align="right" >出生日期：</td>
		<td  colspan="1">
			<span name="proposal/fzr_birthday" id="fzr_birthday"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" /></span>
		</td>
		<td  align="right">文化程度：</td>
		<td colspan="1">
			<span name="proposal/fzr_educate_name" id="fzr_educate"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" /> </span>
		</td>
		
		<td   align="right" >学位：</td>
		<td  colspan="1">
            <span name="proposal/fzr_degree_name" id="fzr_degree_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/degree_name" /></span>
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap>技术职称：</td>
	<td colspan="1">
         <span name="proposal/fzr_prof_title_name" id="fzr_prof_title_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" /></span>
	</td>
	<td align="right">办公电话：</td>
	<td nowrap  colspan="1">
	<span name="proposal/fzr_tel_work" id="fzr_tel_work" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
	</td>
	<td align="right">手机：</td>
	<td nowrap  colspan="1">
	<span name="proposal/fzr_mobile" id="fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
	</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>外语语种：</td>
	<td>
		<input id="fzr_language_name" maxlength="10" name="proposal/fzr_language_name" label="${param.title}-->外语语种" type="text" required class="input_css required maxlength:10"   value="<x:out select="$xmlData/data/proposal/fzr_language_name" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>外语水平：</td>
	<td>
		<input id="fzr_language_level" maxlength="10" name="proposal/fzr_language_level" label="${param.title}-->外语水平" type="text" required class="input_css required maxlength:10"   value="<x:out select="$xmlData/data/proposal/fzr_language_level" />"/> 
	</td>
	 <td  align="right" >从事专业：</td>
		<td colspan="1">
			 <span name="proposal/fzr_major_work" id="fzr_major_work"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span>
		</td>
	</tr>
	
	<tr class="li_2">
	    <td  align="right" ><span class="color_red">*</span>毕业学校：</td>
		<td colspan="1">
			 <input id="fzr_graduate_college" type="text" label="${param.title}-->毕业学校"  name="proposal/fzr_graduate_college" required class="input_css required " value="<x:out select="$xmlData/data/proposal/fzr_graduate_college" />" />
		</td>
		<td  align="right"><span class="color_red">*</span>毕业时间：</td>
		<td>
		<c:set var="graduate_date"><x:out select="$xmlData/data/proposal/graduate_date" /></c:set>
			<cpt:date id="graduate_date" name="proposal/graduate_date" value="${graduate_date}" className=" required date" label="${param.title}-->毕业时间"></cpt:date> 
		</td>
		<td align="right" nowrap>国家科技部学科领域：</td>
			<td>
			<span name="proposal/subject_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/subject_name"/></span>
			</td>
	</tr>
	<tr class="li_1">
	<td align="right">通讯地址：</td>
	<td colspan="3">
	<span name="proposal/fzr_address" id="fzr_address"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/address"/> </span>	
	</td>
	<td align="right">邮政编码：</td>
	<td nowrap  colspan="1" >
	<span name="proposal/fzr_post_code" id="fzr_post_code"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/post_code" /></span>
	</td>
	</tr>
	<tr class="li_2">
	<td  align="right">工作单位：</td>
	<td  colspan="3">
	<span name="proposal/fzr_org_name" id="fzr_org_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/org_name"/> </span>
	</td>
	<td align="right">电子邮箱：</td>
	<td nowrap  colspan="1">
<%-- 	<c:set var="email"><x:out select="$xmlData/data/proposal/fzr_email" /></c:set>
	<c:if test="${empty email }"><c:set var="email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></c:set></c:if> --%>
	<span name="proposal/fzr_email" id="fzr_email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
	</td>
	</tr>
	<tr  class="li_1">
	<td align="right"><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
		<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className="gray readonly required date" label="${param.title}-->申报日期"></cpt:date> 
		</td>
	</tr>
	
	</security:authorize>
	
	
	<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
	<tr class="li_2">
	    <td   align="right" ><span class="color_red">*</span>姓名：</td>
		<td >
			<span name="proposal/fzr_psnname" id="fzr_psnname" class="required" label="${param.title}-->负责人姓名"><x:out select="$xmlData/data/proposal/fzr_psnname" /></span>
			<span id="personSelect">
			<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置项目负责人">
			<cpt:personSelect key="personSelect" addRole="3" psnCode="${param.psnCode }" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
			</span>
		</td>
		<td align="right"><span class="color_red">*</span>性别：</td>
		<td >
		   <label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="fzr_gender" label="男" value="M" /><span style="vertical-align: middle;">男</span></label> 
			<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="fzr_gender" label="女" value="F"  /><span style="vertical-align: middle;">女</span></label> 
			<input type="hidden" name="proposal/fzr_gender_value" id="fzr_gender_value" class="required" value="<x:out select="$xmlData/data/proposal/fzr_gender_value" />" label="${param.title}-->性别" /> 
			<input type="hidden" name="proposal/fzr_gender_name" id="fzr_gender_name" value="<x:out select="$xmlData/data/proposal/fzr_gender_name" />"  />
		</td>
		<td  align="right"><span class="color_red">*</span>民族：</td>
		<td>
			<%-- <span name="proposal/fzr_ethnicity" id="fzr_ethnicity"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_name" /></span> --%>
			<%-- <input type="text" name="proposal/fzr_ethnicity" id="fzr_ethnicity" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_ethnicity" />" label="${param.title}-->民族" /> --%>
			<c:set var="fzr_ethnicity_value"><x:out select="$xmlData/data/proposal/fzr_ethnicity_value" /></c:set>
		<input name="proposal/fzr_ethnicity_value" type="hidden" id="fzr_ethnicity_value" value="<x:out select="$xmlData/data/proposal/fzr_ethnicity_value" />" />
		<input name="proposal/fzr_ethnicity_name" type="hidden" id="fzr_ethnicity_name" value="<x:out select="$xmlData/data/proposal/fzr_ethnicity_name" />" />
		<cpt:select id="fzr_ethnicity" key="nation" onChange="initControlValue('this.id')" className="selectWidth2 required" label="${param.title}-->民族" value="${fzr_ethnicity_value}" style="width:135px;" ></cpt:select>
			
		</td>		
	</tr>
	<tr class="li_1">
		<td   align="right" ><span class="color_red">*</span>出生日期：</td>
		<td  colspan="1">
		<c:set var="fzr_birthday"><x:out select="$xmlData/data/proposal/fzr_birthday" /></c:set>
		<cpt:date id="fzr_birthday" name="proposal/fzr_birthday" value="${fzr_birthday}" className=" required date" label="${param.title}-->出生日期"></cpt:date> 		</td>
		<td  align="right"><span class="color_red">*</span>文化程度：</td>
		<td colspan="1">
			<%-- <span name="proposal/fzr_educate" id="fzr_educate"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" /> </span> --%>
			<%-- <input type="text" name="proposal/fzr_educate" id="fzr_educate" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_educate" />" label="${param.title}-->文化程度" /> --%>
			
			
		<c:set var="fzr_educate_value"><x:out select="$xmlData/data/proposal/fzr_educate_value" /></c:set>
		<input name="proposal/fzr_educate_value" type="hidden" id="fzr_educate_value" value="<x:out select="$xmlData/data/proposal/fzr_educate_value" />" />
		<input name="proposal/fzr_educate_name" type="hidden" id="fzr_educate_name" value="<x:out select="$xmlData/data/proposal/fzr_educate_name" />" />
		<cpt:select id="fzr_educate" key="educate" onChange="initControlValue('this.id')" className="selectWidth2 required" label="${param.title}-->文化程度" value="${fzr_educate_value}" style="width:135px;" ></cpt:select>
		</td>
		
		<td   align="right" ><span class="color_red">*</span>学位：</td>
		<td  colspan="1">
		<c:set var="fzr_degree_value"><x:out select="$xmlData/data/proposal/fzr_degree_value" /></c:set>
		<input name="proposal/fzr_degree_value" type="hidden" id="fzr_degree_value" value="<x:out select="$xmlData/data/proposal/fzr_degree_value" />" />
		<input name="proposal/fzr_degree_name" type="hidden" id="fzr_degree_name" value="<x:out select="$xmlData/data/proposal/fzr_degree_name" />" />
		<cpt:select id="fzr_degree" key="degree" onChange="initControlValue('this.id')" className="selectWidth2 required" label="${param.title}-->学位" value="${fzr_degree_value}" style="width:135px;" ></cpt:select> 				
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap><span class="color_red">*</span>技术职称：</td>
	<td colspan="1">
       <c:set var="fzr_prof_title">{'id':'<x:out select="$xmlData/data/proposal/fzr_prof_title_value" />','name':'<x:out select="$xmlData/data/proposal/fzr_prof_title_name" />'}</c:set>
      <cpt:tree key="prof_title" cacheable="false" className="hn_iuput_kuang required selectWidth3" readonly="true" value="${fzr_prof_title}" label="${param.title}-->技术职称" id="fzr_prof_title" name="industryName" showPattern="all" shieldPattern="0" onClick="initTreeValue2" ></cpt:tree>
	  	<input type="hidden" name="proposal/fzr_prof_title_value" id="fzr_prof_title_value" value="<x:out select="$xmlData/data/proposal/fzr_prof_title_value" />" />
	   <input type="hidden" name="proposal/fzr_prof_title_name" id="fzr_prof_title_name" value="<x:out select="$xmlData/data/proposal/fzr_prof_title_name" />"/>
	</td>
	<td align="right"><span class="color_red">*</span>办公电话：</td>
	<td nowrap  colspan="1">
	<input type="text" name="proposal/fzr_tel_work" id="fzr_tel_work" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_tel_work" />" label="${param.title}-->办公电话" />
	</td>
	<td align="right"><span class="color_red">*</span>手机：</td>
	<td nowrap  colspan="1">
	<input type="text" name="proposal/fzr_mobile" id="fzr_mobile" class="input_css mobile required" onfocus="InitInput.setNumber(this,11,0,0)" value="<x:out select="$xmlData/data/proposal/fzr_mobile" />" label="${param.title}-->手机号码" />
	</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>外语语种：</td>
	<td>
		<input id="fzr_language_name" maxlength="10" name="proposal/fzr_language_name" label="${param.title}-->外语语种" type="text" required class="input_css required maxlength:10"   value="<x:out select="$xmlData/data/proposal/fzr_language_name" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>外语水平：</td>
	<td>
		<input id="fzr_language_level" maxlength="10" name="proposal/fzr_language_level" label="${param.title}-->外语水平" type="text" required class="input_css required maxlength:10"   value="<x:out select="$xmlData/data/proposal/fzr_language_level" />"/> 
	</td>
	 <td  align="right" ><span class="color_red">*</span>从事专业：</td>
		<td colspan="1">
		<%-- <span name="proposal/fzr_major_work" id="fzr_major_work"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/major_work" /></span> --%>
		<input type="text" name="proposal/fzr_major_work" id="fzr_major_work" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_major_work" />" label="${param.title}-->从事专业" />
			 
		</td>
	</tr>
	
	<tr class="li_2">
	    <td  align="right" ><span class="color_red">*</span>毕业学校：</td>
		<td colspan="1">
		<input type="text" name="proposal/fzr_graduate_college" id="fzr_graduate_college" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_graduate_college" />" label="${param.title}-->毕业学校" />
		</td>
		<td  align="right"><span class="color_red">*</span>毕业时间：</td>
		<td>
		<c:set var="graduate_date"><x:out select="$xmlData/data/proposal/graduate_date" /></c:set>
		<cpt:date id="graduate_date" name="proposal/graduate_date" value="${graduate_date}" className=" required date" label="${param.title}-->毕业时间"></cpt:date> 
		</td>
		<td align="right" nowrap><span class="color_red">*</span>国家科技部学科领域：</td>
			<td>
			<c:set var="subject">{'id':'<x:out select="$xmlData/data/proposal/subject_code" />','name':'<x:out select="$xmlData/data/proposal/subject_name" />'}</c:set>
         <cpt:tree key="medically" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${subject}"  label="${param.title}-->国家科技部学科领域" id="subject" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2" />
	      <input id="subject_code" type="hidden" name="proposal/subject_code" class="required" label="${param.title}-->国家科技部学科领域" value="<x:out select="$xmlData/data/proposal/subject_code" />"/>
         <input id="subject_name" type="hidden" name="proposal/subject_name"  value="<x:out select="$xmlData/data/proposal/subject_name" />"/>
			</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>通讯地址：</td>
	<td colspan="3">
	<%-- <span name="proposal/fzr_address" id="fzr_address"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/address"/> </span>	 --%>
	<input type="text" name="proposal/fzr_address" id="fzr_address" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_address" />" label="${param.title}-->通讯地址" />
	</td>
	<td align="right"><span class="color_red">*</span>邮政编码：</td>
	<td nowrap  colspan="1" >
	<%-- <span name="proposal/fzr_post_code" id="fzr_post_code"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/post_code" /></span> --%>
	<input type="text" name="proposal/fzr_post_code" id="fzr_post_code" class="input_css required" maxlength="6" value="<x:out select="$xmlData/data/proposal/fzr_post_code" />" label="${param.title}-->邮政编码" />
	</td>
	</tr>
	<tr class="li_2">
	<td  align="right"><span class="color_red">*</span>工作单位：</td>
	<td  colspan="3">
	<%-- <span name="proposal/fzr_org_name" id="fzr_org_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/org_name"/> </span> --%>
	<input type="text" name="proposal/fzr_org_name" id="fzr_org_name" class="input_css required" value="<x:out select="$xmlData/data/proposal/fzr_org_name" />" label="${param.title}-->工作单位" />
	
	</td>
	<td align="right"><span class="color_red">*</span>电子邮箱：</td>
	<td nowrap  colspan="1">
<%-- 	<c:set var="email"><x:out select="$xmlData/data/proposal/fzr_email" /></c:set>
	<c:if test="${empty email }"><c:set var="email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></c:set></c:if> --%>
	<input type="text" name="proposal/fzr_email" id="fzr_email" class="input_css email required" value="<x:out select="$xmlData/data/proposal/fzr_email" />" label="${param.title}-->电子邮箱" />
	</td>
	</tr>
	<tr  class="li_1">
	<td align="right"><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
		<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className="gray readonly required date" label="${param.title}-->申报日期" ></cpt:date> 
		</td>
	</tr>
		</security:authorize>
	
	
	
	<tr class="li_1">
	<td colspan="6" class="t_bar2"><span class="color_red">*</span>主要业绩（限500字）</td>
	</tr>
	<tr class="li_2">
	<td colspan="6">
	<textarea rows="10" style="width:98%"  class="input_textarea  required maxlength:500"   name='proposal/content/summary_1'  label="${param.title}-->主要业绩"><x:out select="$xmlData/data/proposal/content/summary_1"/></textarea>
		   <input type='hidden' name='proposal/content/summary_1_hidden' id='proposal/content/summary_1_hidden' value=''>
		   </td>
		   
	</tr>
	</table>
	<br/>
